import {Http} from '@/utils/http.js';
class Message {
	
	
	constructor() {
	}
	
	
	
	static async getUnreadMessage(param){
		// TODO 用户登录方法
		return await Http.request({
			url: "message/getUnreadMessage",
			data: param,
			method: "POST",
			header: {
			      'content-type': 'application/x-www-form-urlencoded'
			}
		})
	}
	
	// static async attentionUser(param){
	// 	return await Http.request({
	// 		url: "attention/attentionUser",
	// 		data: param,
	// 		method: "POST",
	// 		header: {
	// 		      'content-type': 'application/x-www-form-urlencoded'
	// 		}
	// 	})
	// }
	
	static async getMessage(param){
		return await Http.request({
			url: "message/getMessageByFriendUid",
			data: param,
			method: "POST",
			header: {
			      'content-type': 'application/x-www-form-urlencoded'
			}
		})
	}
}

export {
	Message
}
